import request from '@/utils/request'

export function getCatalog1() {
  return request({
    url: '/catalog/getCatalog1',
    method: 'get'
  })
}

export function getCatalog2(id) {
  return request({
    url: '/catalog/getCatalog2/' + id,
    method: 'get'
  })
}

export function getCatalog3(id) {
  return request({
    url: '/catalog/getCatalog3/' + id,
    method: 'get'
  })
}

export function getAllCatalog(id) {
  return request({
    url: '/catalog/all',
    method: 'get'
  })
}

export function getNotLeafCatalog() {
  return request({
    url: '/catalog/notLeafCatalog',
    method: 'get'
  })
}

export function saveCatalog(data) {
  return request({
    url: '/catalog/save',
    method: 'post',
    data
  })
}

export function deleteCatalog(data) {
  return request({
    url: '/catalog/delete',
    method: 'post',
    data
  })
}
